<?php 
namespace Phpcmf\Controllers;


class Fabu extends \Phpcmf\Home\Module
{
    
    public function fabuid() {
       //图标 thumb
		
		$wenda_tu = \Phpcmf\Service::M()->db->table('field')->where('name', '问答图')->where('fieldname', 'wendatu')->where('relatedname', 'module')->where('fieldtype', 'Files')->get()->getRowArray();
		//$yinpin = \Phpcmf\Service::M()->db->table('field')->where('name', '音频')->where('fieldname', 'yinpin')->where('relatedname', 'mform-zhishi')->where('fieldtype', 'Files')->get()->getRowArray();
		$huida_tu = \Phpcmf\Service::M()->db->table('field')->where('name', '回答图')->where('fieldname', 'huidatu')->where('relatedname', 'comment-module-wenda')->where('fieldtype', 'Files')->get()->getRowArray();
		
		
        $dataid=[
            
            'wendatu'=> $wenda_tu['id'], //问答图片
			'huidatu' => $huida_tu['id'], //回答图片
            
        ];
        
        $rt=[
			'code'=>1,
		    'msg'=>'发布id',
			'data'=>$dataid,
		];
		return $this->_json($rt['code'], $rt['msg'], $rt['data']);
        
    }
    
	
}